package com.mars.push.core.repository.dao;

import com.mars.push.api.dto.MessageSearch;
import com.mars.push.core.entity.PushMessageEntity;
import com.mars.push.core.repository.BaseDAO;
import com.mars.push.core.repository.mapper.PushMessageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author King
 * @create 2020/7/20 16:58
 */
@Repository
public class PushMessageDao extends BaseDAO<PushMessageEntity> {

    @Autowired
    private PushMessageMapper pushMessageMapper;

    public List<PushMessageEntity> listPushMessage(MessageSearch search) {
        return pushMessageMapper.listPushMessage(search);
    }

}
